package com.maybach.workflow.core.manager;

import com.maybach.util.query.support.PageResult;
import com.maybach.workflow.common.model.FlowSnapDO;
import com.maybach.workflow.common.query.FlowSnapQuery;

import java.util.List;


/**
 * Manager for FlowSnap.
 */
public interface FlowSnapManager {
    /**
     * query count by query condition.
     */
    int countByQuery(FlowSnapQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(FlowSnapQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert selective.
     */
    long insertSelective(FlowSnapDO record);

    /**
     * select by query condition.
     */
    List<FlowSnapDO> selectByQuery(FlowSnapQuery query);


    /**
     * select by query condition with page.
     */
    PageResult<FlowSnapDO> selectByQueryWithPage(FlowSnapQuery query);

    /**
     * select by primary key.
     */
    FlowSnapDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective( FlowSnapDO record,  FlowSnapQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(FlowSnapDO record, FlowSnapQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(FlowSnapDO record);
}